﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Person
    {
        private int id;
        private string name;
        private char sex;
        private int cardiD;
        private int tel;

        public Person() { }

        public Person(int id,string name,char sex,int cardid,int tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardiD = cardid;
            this.tel = tel;
        }
        public void Hello()
        {
            Console.WriteLine("{0}{1}{2}{3}{4}",this.ID,this.Name,this.Sex,this.CardID,this.Tel);
        }
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }  
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        } 
        public int CardID
        {
            get { return this.cardiD; }
            set { this.cardiD= value; }
        }
        public int Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }
    }
}
